package ar.com.equis.mmInstitucionalWeb.bean {
	import ar.com.equis.arquitectura.util.Enum;
	
	[Bindable]
	public class ProductType extends Enum {
		public static const CATEGORY_1:ProductType = new ProductType("CATEGORY_1", _, {label: "Categoria 1"});
		public static const CATEGORY_2:ProductType = new ProductType("CATEGORY_2", _, {label: "Categoria 2"});
		public static const CATEGORY_3:ProductType = new ProductType("CATEGORY_3", _, {label: "Categoria 3"});
		public static const CATEGORY_4:ProductType = new ProductType("CATEGORY_4", _, {label: "Categoria 4"});
		
		private var _label:String
		
		function ProductType(value:String = null, restrictor:* = null, state:* = null) {
			super(value, restrictor);
			this._label = state.label;
		}
			
		override public function getConstants():Array {
			return [CATEGORY_1, CATEGORY_2, CATEGORY_3, CATEGORY_4];
		}
			
		public static function valueOf(name:String):ProductType {
			return ProductType(CATEGORY_1.constantOf(name));
		}
		
		public function get label():String {
			return _label;
		}
	}
}